package esrunecalc;

import java.util.Vector;

/**
 *
 * @author Trevor 
 */
public class Runeword {

    private String name;
    private int numRunes;
    private Vector<Integer> slot;
    private String r1;
    private String r2;
    private String r3;
    private String r4;
    private String r5;
    private String r6;
    private String effects;

    public Runeword(String name, int numRunes, Vector<Integer> slot, String r1, String r2,
            String r3, String r4, String r5, String r6, String effects){

        this.name = name;
        this.numRunes = numRunes;
        this.slot = slot;
        this.r1= r1;
        this.r2=r2;
        this.r3=r3;
        this.r4=r4;
        this.r5=r5;
        this.r6=r6;
        this.effects=effects;

    }

    public String getName()
    {
        return name;
    }

    public int getNumRunes()
    {
        return numRunes;
    }

    public int[] getSlots()
    {
        Integer[] array = new Integer[slot.size()];
        slot.toArray(array);
        int[] intarray = new int[slot.size()];

        for(int i = 0; i<slot.size();i++)
        {
            intarray[i] = array[i].intValue();
        }

        return intarray;

    }

    public String getRune(int n)
    {
        if(n==1)
            return r1;
        if(n==2)
            return r2;
        if(n==3)
            return r3;
        if(n==4)
            return r4;
        if(n==5)
            return r5;
        if(n==6)
            return r6;
        else
            return "NULL";
    }

    public String getEffects()
    {
        return effects;
    }
}
